package com.zjitc.pojo;

import java.io.Serializable;

/**
 * Create By IntelliJ IDEA
 * @author:
 * @create-Time: 2017/11/21  8:07
 */
public class Caritem implements Serializable {
    private Product product;
    private Integer count;
    private double price;

    public Caritem(Product product, Integer count, double price) {
        this.product = product;
        this.count = count;
        this.price = price;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Caritem{" +
                "product=" + product +
                ", count=" + count +
                ", price=" + price +
                '}';
    }

    public Caritem() {

    }
}
